package com.lxw.nonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("t_chronic_disease_certificate")
@ApiModel(value = "ChronicDiseaseCertificate对象", description = "慢病症表")
public class ChronicDiseaseCertificate implements Serializable {
    private static final long serialVersionUID = 123456789L;
    @ApiModelProperty("慢病证唯一ID")
    @TableId(type = IdType.AUTO)
    private Integer certificateId;

    @ApiModelProperty("关联农民ID")
    private Integer farmerId;

    @ApiModelProperty("确诊的慢性病名称")
    private String diseaseName;

    @ApiModelProperty("确诊/起始时间")
    private Date startTime;

    @ApiModelProperty("证书有效期截止时间")
    private Date endTime;

    @ApiModelProperty("农民姓名")
    @TableField(exist = false)
    private String farmerName;
}
